package com.yunxi.yunxicaiproject.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.ai.tool.annotation.ToolParam;

/**
 * <p>
 * 学生请假申请表
 * </p>
 *
 * @author azraelkaxi
 * @since 2025-06-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ai_leave_application")
public class AiLeaveApplication implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 请假ID，主键，自增长
     */
    @ToolParam(required = false, description = "请假编号")
    @TableId(value = "leave_id", type = IdType.AUTO)
    private Integer leaveId;

    /**
     * 学生ID
     */
    @ToolParam(required = false, description = "学生学号")
    private String studentId;

    /**
     * 课表ID
     */
    @ToolParam(required = false, description = "课程号")
    private Integer scheduleId;

    /**
     * 请假开始时间
     */
    @ToolParam(required = false, description = "请假开始时间")
    private LocalDateTime startTime;

    /**
     * 请假结束时间
     */
    @ToolParam(required = false, description = "请假结束时间")
    private LocalDateTime endTime;

    /**
     * 请假类型：病假/事假/其他
     */
    @ToolParam(required = false, description = "请假类型")
    private String type;

    /**
     * 请假原因
     */
    @ToolParam(required = false, description = "请假具体原因")
    private String reason;

    /**
     * 审批状态：0-待审批，1-已批准，2-已拒绝
     */
    @ToolParam(required = false, description = "审批状态")
    private Integer status;


}
